home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-11-25 | 1.7 KB | 27 lines | [TEXT/MPS ] |
- ThreeWayMerge
-
-
- This is a set of three scripts to facilitate merging of source code.
-
- ThreeWayMerge compares/merges two files that are assumed to be derived from a base file.
- It does so by comparing both versions with the base, sorting the resulting difference
- records, and then processing them as actions on the base file. All changes from both
- versions are included in the output. If both versions affect the same lines in the base,
- then both versions are listed, with "•••" marks enclosing the conflict.
-
- ThreeWayMerge.Action is a subroutine called by the main ThreeWayMerge script to process
- each change record.
-
- ThreeWayMergeBranch merges any changes you have locally with the current latest version
- on your Named Branch (or main branch if you don't have one). The resulting merge is placed
- into a modified-read-only file that is derived from the latest version. You can use this
- to merge in changes from other branches by checking them out and then doing a merge.
- It is a variation on the traditional MergeBranch. It renames the branch revision <file>
- to <file>,<branch> and checks out the latest revision on the revision trunk as
- modified-read-only. It also checks out the version of the file from which your local was
- derived (either checked out for modify or modified-read-only). This file is called the base.
- Your version is version1, while the current main branch is version2. We then call
- ThreeWayMergeBranch to merge the changes automatically. The result is that you are
- up-to-date with the main branch, and can check in after you have verified that the merge
- was successful. Note that ThreeWayMergeBranch marks conflicts with lines containing "•••".
-